<script setup lang="ts">
import { computed } from 'vue'

// ts写法
//@ts-ignore
withDefaults(
  defineProps<{
    msg?: string // 是否必传
  }>(),
  {
    msg: '默认值'
  }
)
//@ts-ignore
const qwe = 'qweqweqweqweqweqweqwe'
//@ts-ignore
let mul = computed(() => {
  return ''
})

const asd = () => {
  console.debug()
  return ''
}
</script>

<template>
  <div class="example">
    <h1>example : {{ msg }}</h1>
    <div>
      <el-button type="primary" @click="asd">btn 1</el-button>
    </div>
  </div>
</template>

<style scoped lang="scss">
.example {
  width: 100%;
  height: 100%;
}
</style>
